#coding=utf-8
# 开发

import uvicorn

from src.core.app import startApp


(app, config) = startApp()
 
if __name__ == "__main__":
    config = config.get("base") 
    if config:
        # ,workers=config.get("workers")
        uvicorn.run(app="main_dev:app",reload=True,port=config.get("port"),workers=3  )  
    else:
        uvicorn.run(app="main_dev:app",reload=True)   
     

 